﻿package com.jalheart.utils{
	import	flash.display.*;
	import	flash.display.DisplayObject;
	public	class	DatosGraficos{
		public	static	function	relacionAncho1AltoX(obje:DisplayObject):Number
		{
			return	obje.height/obje.width;
		}
		public	static	function	relacionAlto1AnchoX(obje:DisplayObject):Number
		{
			return	obje.width/obje.height;
		}
		public	static	function	masAnchoQueAlto(obj:DisplayObject):Boolean
		{
			return	obj.width>obj.height;
		}
		public	static	function	centrarEn(cual:DisplayObject, en:DisplayObject):void
		{
			cual.x	=	(en.width-cual.width)/2;
			cual.y	=	(en.height-cual.height)/2;
		}
	}
}